package org.csmz.信管2333;

public class Work1 {
    public static  void main(String[] args) {
        int arr[] = {1, 3, 5, 7};
        int max = arr[0];
        for(int num : arr) {
            if (num > max) {
                max = num;
            }
        }
        System.out.println("数组中的最大值是：" +max);
    }
}
